<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>模板1</title>
<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">
<script th:src="@{/js/jquery-2.2.4.min.js}"></script>
<script th:src="@{/js/menus.js}"></script>
<script th:src="@{/js/utils.js}"></script>
<link th:href="@{/plugin/boostrap/css/bootstrap.min.css}"
	rel="stylesheet" />
<link th:href="@{/css/main.css}"
	rel="stylesheet" />
<script th:src="@{/plugin/boostrap/js/bootstrap.min.js}"></script>
</head>
<body>
	<nav class="navbar navbar-default" role="navigation" style="margin-bottom: 0px;">
		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="#">SpringBoot</a>
			</div>
			<div>
				<ul class="nav navbar-nav" id="navbar-nav">
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li><a href="main2.html">模板2</a></li>
					<li><a href="#" th:text="${session.USERLOGIN.user.name}"></a></li>
					<li><a href="javascript:;" id="logout">注销</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<iframe id="mainpage" src="../app/echart.html" style="width: 100%;"></iframe>
</body>
<script type="text/javascript" th:inline="javascript">
	var xx=[[${session.USERLOGIN.user}]];  
	$(document).ready(function() {
		$("#navbar-nav").createMenu(menuJsons);
		$("#mainpage").height($(document).height()-53);
	});
	$('#logout').click(function() {
		$springboot.post("/login/logout", {}, function(rs) {
			location.href = $springboot.getContextPath() + "/login.html";
		});
	});
</script>
</html>
